<?php
/**
 * Author: LCY<409028735@qq.com>
 * Time: 2021/11/19 14:42
 * Note:
 */
namespace app\admin\model;
use think\Model;

class Configs extends Model
{
   

    public function setCashDateSetttingAttr($val){
        if(is_array($val)){
            return implode(',',$val);
        }

        return $val;
    }

    public function getCashDateSetttingAttr($val){
        if(is_string($val)){
            return explode(',',$val);
        }

        return $val;
    }

    public function setCashChannelSetttingAttr($val){
        if(is_array($val)){
            return implode(',',$val);
        }

        return $val;
    }

    public function getCashChannelSetttingAttr($val){
        if(is_string($val)){
            return explode(',',$val);
        }

        return $val;
    }
}